package com.commpany.servie.basic.product.business.write.product.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.commpany.jdq.core.orm.Pagination;
import com.commpany.servie.basic.product.business.write.product.ProductWriteManage;
import com.commpany.servie.basic.product.dao.write.ProductWriteDAO;
import com.commpany.servie.basic.product.po.ProductPO;
@Service
public class ProductWriteManageImpl implements ProductWriteManage {
	Logger logger = LoggerFactory.getLogger(this.getClass());
	@Autowired
	private ProductWriteDAO productWriteDAO;
	@Override
	public int insertProductService( ProductPO po ){
	
	  return productWriteDAO.insert(po);
	}
	@Override
    public int updateProductService( ProductPO po ){
        return productWriteDAO.update(po);
    }
    
    @Override
    public int deleteProductService( ProductPO po ){
        return productWriteDAO.delete(po);
    }
}
	